package top.jle.jpa.basic.entities;


import lombok.Getter;

/**
 * 标识实体不能直接被删除,只能被设为无效的接口
 */
public interface UnDeletableEntity extends TimeMarkedEntity {


	@Getter
	enum PropertyMapping{
		STATUS(PROP_STATUS,PROP_STATUS);
		private final String property;
		private final String column;

		PropertyMapping(String property, String column) {
			this.property = property;
			this.column = column;
		}

	}
	String PROP_STATUS = "status";
	
	int STATUS_INVALID = -1;// 无效的
	
	int STATUS_VALID = 1;// 有效的

	int LIMIT_SIZE = 500;//手机端获取历史记录条数
	/**
	 * @return the status
	 */
	int getStatus();

	/**
	 * @param status
	 *            the status to set
	 */
	void setStatus(int status);

}
